//
//  OrderPopupConfirmViewController.m
//  CreditHub
//
//  Created by chenglang on 2024/9/21.
//

#import "OrderPopupConfirmViewController.h"
#import "PanPopupConfirmInputCell.h"

@interface OrderPopupConfirmViewController ()

@property (weak, nonatomic) IBOutlet WKWebView *webView;

@end

@implementation OrderPopupConfirmViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
   
    [self.webView loadRequest:[[NSURLRequest alloc] initWithURL:[NSURL URLWithString:self.url]]];
    self.webView.backgroundColor = [UIColor clearColor];
   
}

- (IBAction)clickOK:(id)sender {
    [self.view endEditing:YES];
    
    __weak typeof(self) weakself= self;
    [self dismissViewControllerAnimated:YES completion:^{
        if(weakself.confirmBlock){
            weakself.confirmBlock(weakself.arrayInfo);
        }
    }];
}
- (IBAction)clickCancel:(id)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
